using System;
using System.Collections.Generic;
using System.Text;

namespace jsonReader
{
    public class JsonNumber : IJsonValue
    {
        string number = "0";
        public JsonNumber(string number) {
            if (!String.IsNullOrEmpty(number)){
                this.number = number;
            }
        }

        #region IJsonValue Members


        public string ToJsonString() {
            return number;
        }

        #endregion

        /// <returns>A <see cref="T:System.String"></see> that represents the current <see cref="T:System.Object"></see>.</returns>
        public override string ToString() {
            return number;
        }
    }
}
